package com.example.yk_lx.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.yk_lx.R;
import com.hyphenate.chat.EMGroup;

import java.util.List;

public class GroupAdapter extends BaseQuickAdapter<EMGroup, BaseViewHolder> {
    public GroupAdapter(int layoutResId, @Nullable List<EMGroup> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, EMGroup group) {
        holder.setText(R.id.tv_user,group.getGroupName());
    }
}
